<template>
  <div>
     <button @click="del">-</button>
     <span>{{value}}</span>
     <button @click="add">+</button>
   </div>
</template>
 
<script>
export default {
props:['value'],
methods:{
  del(){
    this.$emit('input',this.value-1)
  },
  add(){
    this.$emit('input',this.value+1)
  }
}
};
</script>

<style scoped>
     
</style>